package TeacherLegendAPI.String;

public class Trainning {
    public static void main(String[] args) {
        String email="fancq@tedu.cn";
        String regex="[a-zA-Z0-9_]+@[a-zA-Z0-9]+(\\.[a-zA-Z]+)+";

        boolean match=email.matches(regex);
        if(match){
            System.out.println("是正则表达式");
        }else{
            System.out.println("不是正则表达式");
        }
    }
}
